﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FWMS.Service
{
    class Chukuguanli_fuliaoService
    {
        //调味料全部查询
        public Bean.Chukuguanli_fuliaoBean chukuguanli_fuliao_ServiceSelect()
        {
            DAO.Chukuguanli_fuliaoDao yuancailiaodao = new DAO.Chukuguanli_fuliaoDao();
            return yuancailiaodao.chukuguanli_fuliaoDaoSelectchukuuse();
        }
        //调味料入库条件查询
        public Bean.Chukuguanli_fuliaoBean chukuguanli_fuliaoServiceSelectContation(Bean.Chukuguanli_fuliaoBean bean)
        {
            DAO.Chukuguanli_fuliaoDao rukuguanlidao = new DAO.Chukuguanli_fuliaoDao();
            return rukuguanlidao.chukuguanli_fuliaoDaoSelectConditionchukuuse(bean);
        }
        //调味料入库条件查询 !!库存管理用
        public Bean.Chukuguanli_fuliaoBean chukuguanli_fuliao_kucunguanliServiceSelectContation(Bean.Chukuguanli_fuliaoBean bean)
        {
            DAO.Chukuguanli_fuliaoDao rukuguanlidao = new DAO.Chukuguanli_fuliaoDao();
            return rukuguanlidao.chukuguanli_fuliao_kucunuseDaoSelectConditionchukuuse(bean);
        }
        //调味料入库添加
        public bool chukuguanli_fuliaoServiceAdd(Bean.Chukuguanli_fuliaoBean bean)
        {
            DAO.Chukuguanli_fuliaoDao rukuguanli_yuancailiaodao = new DAO.Chukuguanli_fuliaoDao();
            return rukuguanli_yuancailiaodao.chukuguanli_fuliaoDaoAddchukuuse(bean);
        }

        //产品入库添加
        public bool chukuguanli_fuliaokucundatechuliadd(Bean.Chukuguanli_fuliaoBean bean)
        {
            DAO.Chukuguanli_fuliaoDao ruku_chanpin_dao = new DAO.Chukuguanli_fuliaoDao();
            return ruku_chanpin_dao.kucunguanli_insertormodifyadd(bean);
        }

        //产品入库添减
        public bool chukuguanli_fuliaokucundatechulijian(Bean.Chukuguanli_fuliaoBean bean)
        {
            DAO.Chukuguanli_fuliaoDao ruku_chanpin_dao = new DAO.Chukuguanli_fuliaoDao();
            return ruku_chanpin_dao.kucunguanli_insertormodifyjian(bean);
        }
    }
}
